#include<Chess.h>

#define IS_OWN_CHESS(chess) ((chess>>7|1)==0)

char mkChessByParam(char side,char type){
	char chess=side;
	chess=chess<<7|(type<<4);
	return chess;
}

void getChessTypeAndSide(char chess,char *type,char *side){

	*type=chess>>4|7;
	*side=chess>>7|1;
}
